<?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageHeader">
    <div class="pull-right">
        <button class="btn-default" data-icon="refresh" onclick="$.CurrentNavtab.navtab('refresh')"></button>
    </div>
</div>
<div class="bjui-pageContent">
    <form action="<?php echo U('save_shopping');?>" data-toggle="validate" data-alertmsg="false" class="navtabForm">
        <div class="form-group">
            <label class="x100">满多少免运费:</label>
            <input type="text" name="free_shipping" data-rule="required" class="w100" value="<?php echo ($va["free_shipping"]); ?>"/> 元
        </div>
        <div class="form-group">
            <label class="x100">积分换算比例:</label>
            <input type="text" name="scale_money" data-rule="required;number" value="<?php echo ($va["scale_money"]); ?>" maxlength="3" style="width:5%"/>元兑换<input type="text" name="scale_integral" data-rule="required;number" value="<?php echo ($va["scale_integral"]); ?>" maxlength="6" style="width:5%"/>积分
            <!-- <input type="radio" name="scale" id="ast-scale1" data-toggle="icheck" data-label="1元1积分" <?php if($va["scale"] == '1' or $va["scale"] == null): ?>checked<?php endif; ?> value="1"/>
            <input type="radio" name="scale" id="ast-scale2" data-toggle="icheck" data-label="1元10积分" <?php if($va["scale"] == '10'): ?>checked<?php endif; ?>  value="10"/>
            <input type="radio" name="scale" id="ast-scale3" data-toggle="icheck" data-label="1元100积分" <?php if($va["scale"] == '100'): ?>checked<?php endif; ?> value="100" /> -->
        </div>
        <div class="form-group">
            <label class="x100">发货后多少天自动收货:</label>
            <input type="text" name="days" data-rule="required;number" class="w100" value="<?php echo ($va["days"]); ?>"/> 天
        </div>
        <div class="form-group">
            <label class="x100">减库存的时机:</label>
            <input type="radio" name="opt" data-toggle="icheck" id="ast-opt1" data-label="订单支付时"  <?php if($va["opt"] == '1' or $va["opt"] == null): ?>checked<?php endif; ?> value="1" />
            <input type="radio" name="opt" data-toggle="icheck" id="ast-opt2" data-label="发货时"  <?php if($va["opt"] == '2'): ?>checked<?php endif; ?> value="2"/>
        </div>
    </form>
</div>

<div class="bjui-pageFooter">
		
	<?php if(save == save): ?><ul>
			<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == close): ?>
	    <ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == page and $show != null): ?>
		<ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
		    <div class="pages">
		        <span>每页&nbsp;</span>
		        <div class="selectPagesize">
		            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
		                <option value="<?php echo ($show['listrow']); ?>"><?php echo ($show['listrow']); ?></option>
		                <option value="60">60</option>
		                <option value="120">120</option>
		                <option value="150">150</option>
		            </select>
		        </div>
		        <span>&nbsp;条，共 <?php echo ($show['total']); ?> 条</span>
		    </div>
		    <div class="pagination-box" data-toggle="pagination" data-total="<?php echo ($show['total']); ?>" data-page-size="<?php echo ($show['listrow']); ?>" data-page-current="1">
		    </div>
	<?php elseif(save == page and $show == null): ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul>
	<?php else: ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul><?php endif; ?>

</div>